import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {HomeComponent} from "./home.component";
import {Routes, RouterModule} from '@angular/router';
import {OnlineContactComponent} from "./online-contact/online-contact.component";
import {SitestatComponent} from "./sitestat/sitestat.component";
import {SocialChannelComponent} from "./social-channel/social-channel.component";

const homeRoutes: Routes = [
  {
    path: '',
    component: HomeComponent,
    children: [
      {
        path: '',
        loadChildren: '../post/post.module#PostModule'
      }
    ]
  }
]

@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(homeRoutes)
  ],
  declarations: [
    HomeComponent,
    SocialChannelComponent,
    SitestatComponent,
    OnlineContactComponent,
  ]
})
export class HomeModule {
}
